<?php
if (!defined('FosfoaSystem')) { exit(1);}
class orders_productsModel extends spModel
{
	var $pk = "orders_products_id"; // 每个唯一的标志，可以称为主键
	var $table = "orders_products"; // 数据表的名称
    
    
    function Detail($orders_products_id){
		$condition = array('orders_products_id'=>$orders_products_id);
		$arr = $this->find($condition);
		return $arr;
	}
    /**
     * 根据订单ID返回相关订单商品
     */
    function return_list($orders_id)
    {
        $condition = array('orders_id'=>$orders_id);
        $arr = $this->findAll($condition);
        return $arr;
    }
}